package com.test;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.io.Resource;
import org.springframework.stereotype.Service;

/**
 * @ClassName: SftpConfig
 * @Description: sftp配置类
 * @Author:
 * @CreateDate: 2019/9/18
 * @Version: 1.0
 */
@Configuration
@Data
public class SftpConfig {
    @Value("${sftp.oa.hostname}")
    private String hostname;
    @Value("${sftp.oa.port}")
    private Integer port;
    @Value("${sftp.oa.username}")
    private String username;
    @Value("${sftp.oa.password}")
    private String password;
    @Value("${sftp.oa.timeout}")
    private Integer timeout;
    private Resource privateKey;
    private String remoteRootPath;
    private String fileSuffix;
}